home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4000 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  733 b 

  1. Path: gail.ripco.com!mambuhl
  2. From: mambuhl@ripco.com (Martin Ambuhl)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Multiplication Pr 2/2
  5. Date: 1 Feb 1996 10:08:59 GMT
  6. Organization: Ripco Communications, Inc.
  7. Message-ID: <4eq3fr$oiq@gail.ripco.com>
  8. NNTP-Posting-Host: golden.ripco.com
  9.  
  10. >>> Continued from previous message
  11.  
  12.  
  13.  
  14. >float timer(int reset){
  15. >        static clock_t start;
  16. >        float elapsed;
  17.  
  18. >        elapsed = (float)(clock() - start) / CLOCKS_PER_SEC;
  19. >        if(reset){
  20. >                start = clock();
  21. >        }
  22. >        return(elapsed);
  23. >}
  24.                                                                                                             
  25. --
  26. * Martin Ambuhl       net: mambuhl@ripco.com
  27. * Chicago, IL (USA)    
  28.